package com.leo.foodmaster.admin.recipe.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leo.foodmaster.admin.recipe.dto.RecipeComboDTO;
import com.leo.foodmaster.admin.recipe.entity.RecipeComboEntity;
import com.leo.foodmaster.commons.entity.Result;

import java.util.List;

/**
 * 套餐主表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2021-11-09
 */
public interface IRecipeComboService extends IService<RecipeComboEntity> {

	/**
	 * 条件分页查询
	 * @param page 分页条件
	 * @param name 名称
	 * @param status 状态
	 * @return IPage<RecipeComboEntity>
	 */
	IPage<RecipeComboEntity> pageList(IPage<RecipeComboEntity> page, String name, String status);

	/**
	 * 新增套餐
	 * @param dto 套餐信息
	 * @return Boolean
	 */
	Boolean addRecipeCombo(RecipeComboDTO dto);

	/**
	 * 修改套餐
	 * @param dto 套餐信息
	 * @return Boolean
	 */
	Boolean updateRecipeCombo(RecipeComboDTO dto);

	/**
	 * 删除套餐信息
	 * @param idList id列表
	 * @return Result<Integer>
	 */
	Result<Integer> deleteBatchIds(List<Long> idList);
}
